import { globalStyle } from '@/components/global-config/style/style'
import { deepCopy } from '@/function'


export const data = {
    name: 'image',
    data: {
        style: Object.assign(deepCopy(globalStyle),{
            backgroundColor: 'none',
            height: 'auto'
        }),
        fit: "contain",
        url: '',
    },
    label: {
        name: "图片",
        icon: 'photo-o',
        type: "component-image-label",
    },
    render: {
        type: "component-image-render",
        component: import('./render.vue')
    },
    preview: {
        type: "component-image-preview",
        component: import('./preview.vue')
    },
    config: {
        type: "component-image-config",
        component: import('./config.vue')
    },
}

export const name = data.name